<?php
	$f = fopen("Album.xml", "r");
	$album = fread($f, filesize("Album.xml"));
	fclose($f);
	$header = '<?xml version="1.0" encoding="UTF-8"?>';
	$newheader = '<?xml version="1.0" encoding="UTF-8"?>
	<?xml-stylesheet type="text/xsl" href="'.$_GET['cover'].'"?>';
	$newalbum = str_replace($header, $newheader, $album);
	$f = fopen("Album-final.xml", "w");
	$album = fwrite($f, $newalbum);
	fclose($f);
?>
<html>
	<body onload="javascript:location.href='Album-final.xml'"></body>
</html>
